﻿@model List<Domain.Entities.Order_Info>
@{
    ViewBag.Title = "List";
}
<style type="text/css">
    * { font-size: 12px; color: #666; }
    div, span { padding: 5px; }
    input { margin:0;padding:0;}
</style>
<h2>订单列表</h2>
@using (Html.BeginForm())
{
    <h3>用户ID：<input type="text" name="userid" id="userid" /></h3>
    <button>查询</button>
}
@if (Model != null && Model.Count > 0)
{
    foreach (var item in Model)
    { 
    <div><span>@item.CreateDate</span><span>@item.OrderID</span><span>@item.UserID</span></div>
    }
}
else
{
    <div><span>没有相关数据</span></div>
}
